package com.gw.topicconsumer1.service;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class TopicConsumer1Service {
    @JmsListener(destination = "ActiveMQTopic")
    public void handleMessage(String name){
        System.out.println("接收到的name的值为："+name);
    }
}
